package com.qf.pojo;

/**
 * projectName: Spring
 *
 * @author: MaTianWei
 * time: 2021/6/28 14:23
 * description:
 */

public class User {
    private Integer id = 1;

    private String name = "zhangsan";

    private Integer gender = 1;
    public User(){
        System.out.println("user的无参构造执行了");
    }

    public void init(){
        System.out.println("user对象的init执行了");
    }
    public void destroy(){
        System.out.println("user对象的destroy执行了");
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", gender=" + gender +
                '}';
    }
}
